package modele;

public class Account {
	protected int balance;

	/**
	 * Give the current amount of money in the account.
	 */
	public int getBalance() {
		return balance;
	}

	/**
	 * Credit the account.
	 * 
	 * @param amount
	 *            money to add in the account
	 */
	public void credit(int amount) {
		balance = balance + amount;
	}

	/**
	 * Debit the account
	 * 
	 * @param amount
	 *            money to remove from the account
	 */
	public void debit(int amount) {
		balance = balance - amount;
	}
}
